from django.conf.urls import url
from calc import home_views as home_views
from calc import server_views as server_views
from calc import ts_views as ts_views
from calc import wrong_views as wrong_views
from system import login


urlpatterns = [
    url(r'^server/all/$', server_views.server_all, name='server_all'),
    url(r'^server/testIP/$', server_views.test_IP, name='test_IP'),
    url(r'^server/allip/$', server_views.server_allip, name='server_allip'),
    url(r'^server/page/$', server_views.server_page, name='server_page'),
    url(r'^server/info/(?P<id>\S+)$', server_views.server_info, name='server_info'),
    url(r'^server/add/$', server_views.server_add, name='server_add'),
    url(r'^server/update/$', server_views.server_update, name='server_update'),
    url(r'^server/delete/(?P<id>\S+)$', server_views.server_delete, name='server_delete'),

    url(r'^wrong/page/$', wrong_views.wrong_page, name='wrong_page'),

    url(r'^ts/findts/$', ts_views.find_ts, name='find_ts'),
    url(r'^ts/page/$', ts_views.ts_page, name='ts_page'),
    url(r'^ts/info/(?P<id>\S+)$', ts_views.ts_info, name='ts_info'),
    url(r'^ts/add/$', ts_views.ts_add, name='ts_add'),
    url(r'^ts/update/$', ts_views.ts_update, name='ts_update'),
    url(r'^ts/delete/(?P<id>\S+)$', ts_views.ts_delete, name='ts_delete'),

    url(r'^home/data/$', home_views.home_data, name='home_data'),
    url(r'^home/message/$', home_views.home_message, name='home_data'),



    url(r'^login/', login.login, name='login'),
    url(r'^logout/', login.logout, name='logout'),
]
